CODE128B.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
import CODE128 from './CODE128.js';
2
import { B_START_CHAR, B_CHARS } from './constants';
3
4
class CODE128B extends CODE128 {
5
	constructor(string, options) {
6
		super(B_START_CHAR + string, options);
7
	}
8
9
	valid() {
10
		return (new RegExp(`^${B_CHARS}+$`)).test(this.data);
11
	}
12
}
13
14
export default CODE128B;
15